package others;

/**
 * @ClassName wer
 * @Author lupeibei
 * @create 2022/5/30 4:50 PM
 */
public class wer {
    public static void main(String[] args) {
         int nums1[] = {1,2,2,1};
         int nums2[] = {2,2};
        for(int i=0; i<nums1.length; i++ ) {
            for(int j=0; j<nums2.length; j++) {
                if(nums1[i]==nums2[j]) {
                    System.out.print(nums2[j]);
                }
            }
        }
    }
}
